package com.u.iot.beauty.controller;

import com.u.iot.beauty.service.ISkinService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: u-InternetOfThings
 * @description: 皮肤检测控制器类
 * @author: Alex Wu
 * @createDate: 2025-03-24 15:22
 **/

@RestController
@RequestMapping("/skin")
public class SkinController {

    private ISkinService skinService;

    @GetMapping("/detection")
    public String getDetectionSkinInfo(String uuid, String skinImageUrl) throws InterruptedException {
        return skinService.getDetectionSkinInfo(skinImageUrl);
    }

    @GetMapping("/detection/history")
    public String getDetectionSkinInfoHistory(String uuid) throws InterruptedException {
        return skinService.getDetectionSkinInfo(uuid);
    }
}
